package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单支付对象 payments
 * 
 * @author ruoyi
 * @date 2024-09-25
 */
public class Payments extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 支付id */
    private Long id;

    /** 第三方支付平台的交易ID */
    @Excel(name = "第三方支付平台的交易ID")
    private Long transactionId;

    /** 支付金额 */
    @Excel(name = "支付金额")
    private Long amount;

    /** 提交时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提交时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paidAt;

    /** 支付状态 */
    @Excel(name = "支付状态")
    private String paymentStatus;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String paymentMethod;

    /** 数量 */
    @Excel(name = "数量")
    private Long paymentQuantity;

    /** 订单支付表 */
    @Excel(name = "订单支付表")
    private Long columnName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTransactionId(Long transactionId) 
    {
        this.transactionId = transactionId;
    }

    public Long getTransactionId() 
    {
        return transactionId;
    }
    public void setAmount(Long amount) 
    {
        this.amount = amount;
    }

    public Long getAmount() 
    {
        return amount;
    }
    public void setPaidAt(Date paidAt) 
    {
        this.paidAt = paidAt;
    }

    public Date getPaidAt() 
    {
        return paidAt;
    }
    public void setPaymentStatus(String paymentStatus) 
    {
        this.paymentStatus = paymentStatus;
    }

    public String getPaymentStatus() 
    {
        return paymentStatus;
    }
    public void setPaymentMethod(String paymentMethod) 
    {
        this.paymentMethod = paymentMethod;
    }

    public String getPaymentMethod() 
    {
        return paymentMethod;
    }
    public void setPaymentQuantity(Long paymentQuantity) 
    {
        this.paymentQuantity = paymentQuantity;
    }

    public Long getPaymentQuantity() 
    {
        return paymentQuantity;
    }
    public void setColumnName(Long columnName) 
    {
        this.columnName = columnName;
    }

    public Long getColumnName() 
    {
        return columnName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("transactionId", getTransactionId())
            .append("amount", getAmount())
            .append("paidAt", getPaidAt())
            .append("paymentStatus", getPaymentStatus())
            .append("paymentMethod", getPaymentMethod())
            .append("paymentQuantity", getPaymentQuantity())
            .append("columnName", getColumnName())
            .toString();
    }
}
